﻿@model IEnumerable<Citi.GocAttributes.WebUI.Models.RuleResultModel>

@if (Model == null || !Model.Any())
{
    <p>No Result was assigned</p>
    return;
}

<table class="table table-bordered table-striped">
    <tr>
        <th>O&T Attribute</th>
        <th>Value</th>
    </tr>

@foreach (var item in Model) {
    <tr class="@(Model.ToList().IndexOf(item) % 2 == 0 ? "odd" : "even")">
        <td>
            @item.TypeRuleResult.Type.GetDescription()
        </td>
        <td>
            @item.TypeRuleResult.Value
        </td>
    </tr>
}

</table>
